home *** CD-ROM | disk | FTP | other *** search
/ Over 1,000 Windows 95 Programs / Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso / 1468 / clock24.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1996-07-20  |  2.8 KB  |  101 lines

  1. VERSION 4.00
  2. Begin VB.Form Clock24 
  3.    BorderStyle     =   3  'Fixed Dialog
  4.    Caption         =   "24 Hour Clock"
  5.    ClientHeight    =   1500
  6.    ClientLeft      =   3750
  7.    ClientTop       =   5490
  8.    ClientWidth     =   2685
  9.    Height          =   1905
  10.    Icon            =   "Clock24.frx":0000
  11.    Left            =   3690
  12.    LinkTopic       =   "Form1"
  13.    LockControls    =   -1  'True
  14.    MaxButton       =   0   'False
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   1500
  17.    ScaleWidth      =   2685
  18.    ShowInTaskbar   =   0   'False
  19.    Top             =   5145
  20.    Width           =   2805
  21.    Begin VB.CheckBox Check1 
  22.       Caption         =   "Show unlit segments"
  23.       Height          =   300
  24.       Left            =   120
  25.       TabIndex        =   1
  26.       Top             =   1140
  27.       Width           =   1875
  28.    End
  29.    Begin VB.CommandButton cmdForeColor 
  30.       Caption         =   "ForeColor"
  31.       Height          =   315
  32.       Left            =   1500
  33.       TabIndex        =   2
  34.       Top             =   120
  35.       Width           =   1095
  36.    End
  37.    Begin VB.CommandButton cmdBackColor 
  38.       Caption         =   "BackColor"
  39.       Height          =   315
  40.       Left            =   1500
  41.       TabIndex        =   3
  42.       Top             =   480
  43.       Width           =   1095
  44.    End
  45.    Begin VB.CheckBox chkBlinkColon 
  46.       Caption         =   "Blink colon"
  47.       Height          =   300
  48.       Left            =   120
  49.       TabIndex        =   0
  50.       Top             =   840
  51.       Value           =   1  'Checked
  52.       Width           =   1215
  53.    End
  54.    Begin VB.Timer Timer1 
  55.       Interval        =   500
  56.       Left            =   2220
  57.       Top             =   960
  58.    End
  59.    Begin VB.PictureBox picLCD 
  60.       Height          =   435
  61.       Left            =   120
  62.       ScaleHeight     =   375
  63.       ScaleWidth      =   1215
  64.       TabIndex        =   4
  65.       Top             =   180
  66.       Width           =   1275
  67.    End
  68. Attribute VB_Name = "Clock24"
  69. Attribute VB_Creatable = False
  70. Attribute VB_Exposed = False
  71. Option Explicit
  72. Dim moLCD As New CLCD
  73. Private Sub Form_Load()
  74.     With moLCD
  75.         .Alignment = gnCENTER
  76.         .BlinkColon = True
  77.         .ForeColor = vbYellow
  78.         Set .Container = picLCD
  79.     End With
  80.     Timer1_Timer
  81. End Sub
  82. Private Sub Form_Unload(Cancel As Integer)
  83.     Set moLCD = Nothing
  84.     Set Clock24 = Nothing
  85. End Sub
  86. Private Sub Timer1_Timer()
  87.     moLCD.Caption = Format$(Now, "hh:mm")
  88. End Sub
  89. Private Sub chkBlinkColon_Click()
  90.     moLCD.BlinkColon = Not moLCD.BlinkColon
  91. End Sub
  92. Private Sub cmdForeColor_Click()
  93.     moLCD.SelectForeColor
  94. End Sub
  95. Private Sub cmdBackColor_Click()
  96.     moLCD.SelectBackColor
  97. End Sub
  98. Private Sub Check1_Click()
  99.     moLCD.ShowUnlitSegments = Not moLCD.ShowUnlitSegments
  100. End Sub
  101.